package com.note.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 用户登录数据传输对象
 * 用于接收登录请求参数
 */
@Data
@Schema(description = "用户登录请求")
public class UserLoginDTO {

    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名", required = true, example = "zhangsan")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码", required = true, example = "password123")
    private String password;
    
    @Schema(description = "设备类型", example = "WEB")
    private String deviceType = "WEB";
    
    @Schema(description = "设备信息", example = "Chrome 98.0.4758.102")
    private String deviceInfo;
    
    @Schema(description = "登录IP", example = "192.168.1.1")
    private String loginIp;
} 